﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using mesan.ansatt.services;

namespace Mesan.ServiceHost
{
    class Program
    {
        static void Main(string[] args)
        {
            using(var host =new System.ServiceModel.ServiceHost(typeof(AnsatteService)))
            {

                foreach (var endpoint in host.Description.Endpoints)
                {
                    Console.WriteLine("Endepunkt: " + endpoint.Address);
                }
                Console.ReadKey();
                host.Open();
            }


        }
    }
}
